{template header}
<div class="container">

    <div class="panel panel-default">
        <div class="panel-body">


            <div class="jumbotron">

                <h1>问答 <small>读懂生活的每个细节 </small></h1>
                <p class="tar"><a href="{tsUrl('ask', 'new')}" class="btn btn-primary" role="button">我要提问</a></p>

            </div>




            <div class="row" id="wrap">
                <div class="col-md-8">
            <div class="category">
                <ul>
                    <li>
                    <a {if $ac == 'index'}class="current"{/if} href="{tsUrl('ask')}">{if $ac == 'index'}<span>我关注的动态</span>{else}我关注的动态{/if}</a>
                    </li>
                    <li id="latest">
                    <a {if $ac == 'latest'}class="current"{/if} href="{tsUrl('ask', 'latest')}">{if $ac == 'latest'}<span>待回答的问题</span>{else}待回答的问题{/if}</a>
                    </li>
					
					
                    <li>
                    <a {if $ac == 'hot'}class="current"{/if} href="{tsUrl('ask', 'hot')}">{if $ac == 'hot'}<span>热门问题</span>{else}热门问题{/if}</a>
                    </li>
					
					
					<li>
                    <a {if $ac == 'my'}class="current"{/if} href="{tsUrl('ask','my')}">{if $ac == 'my'}<span>我参与过的问题</span>{else}我参与过的问题{/if}</a>
                    </li>
					
					
                </ul>
            </div>
            <div class="main-title-line"></div>

			
			<div class="commlist">
			<ul>
			{loop $arrAsk $key $item}
			<li><a href="{tsUrl('ask','question',array('id'=>$item['askid']))}">{$item['title']}</a></li>
			{/loop}
			</ul>
			</div>


        </div>

                <div class="col-md-4">
            <div class="side-title">
                <h2>问题分类</h2>
            </div>
            <ul class="side-tags" id="tagList">
                {loop $arrCate $v}
                <li>
                    <p class="side-tags-l"><a class="tag{if $selectedcate}{loop $selectedcate $cate}{if $cate['cateid']==$v['cateid']} selected{/if}{/loop}{/if}" href="{tsUrl('ask', 'category', array('cateid'=>{$v['cateid']}))}">{$v['catename']}<span class="followCounter">{$v['count_topic']}</span></a></p>
                    <a data-id="{$v['cateid']}" data-operation="follow" class="followBt side-tags-{if $selectedcate}{loop $selectedcate $cate}{if $cate['cateid']==$v['cateid']}un{/if}{/loop}{/if}follow" href="javascript:void 0;">{if $selectedcate}{loop $selectedcate $cate}{if $cate['cateid']==$v['cateid']}取消{/if}{/loop}{/if}关注</a>
                </li>
                {/loop}
            </ul>
        </div>
    </div>
	
	<div class="bottom"></div>



</div>
</div>
</div>
{template footer}